package com.epay.controller;


import cn.hutool.http.HttpUtil;
import cn.stylefeng.guns.modular.system.entity.*;
import com.alibaba.fastjson.JSONObject;
import com.epay.Epay;
import com.epay.EpayEncrypt;
import com.epay.PayUrl;
import com.epay.RespDataApi;
import com.epay.callback.PlatMerOrderNotify;
import com.epay.service.PlatMerOrderService;
import com.epay.service.RechargeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.request.async.WebAsyncTask;
import params.PlatMerOrderParam;

import javax.annotation.Resource;
import java.lang.reflect.Method;
import java.security.MessageDigest;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.Callable;
@RequestMapping
@Controller
@Slf4j
public class RechargeControllerApi {

    @Autowired
    RedisTemplate redisTemplate;

    @Autowired
    RechargeService rechargeService;

    @Autowired
    PlatMerOrderNotify platMerOrderNotify;

    @Resource
    PlatMerOrderService platMerOrderService;

    @SuppressWarnings("unchecked")
    public <T> T parseReqParam(String reqParam, String iv, Class<T> clazz) {
        Parms parms = (Parms) redisTemplate.opsForHash().get(Epay.PARAM_KEY, Epay.BaseParams.AES_KEY_CODE);
        String aseKey = parms.getVal();
        T t = EpayEncrypt.parseReqParam(reqParam, aseKey, iv, clazz);
        return t;

    }

    @PostMapping("/createApi")
    @ResponseBody
    public WebAsyncTask<PayUrl> createApi(String reqParam, String iv) throws Exception {
        JSONObject param = this.parseReqParam(reqParam, iv, JSONObject.class);
        
        PlatMerBaseCode platMerBaseCode = param.getObject("platMerChannel", PlatMerBaseCode.class);
        log.error(" platMerBaseCode data {}", platMerBaseCode.toString());
        PlatMer platMer = param.getObject("merInfo", PlatMer.class);
        log.error(" platmer data {}", platMer.toString());

        PlatMerOrderParam platMerOrder = param.getObject("platMerOrder", PlatMerOrderParam.class);
        log.error(" platMerOrder data {}", platMerOrder.toString());
        MerChannel merChannel = param.getObject("merChannel", MerChannel.class);
        log.error(" merChannel data {}", merChannel.toString());
        param.remove("channelCode");
        param.remove("submitIp");


        Callable<PayUrl> callable = new Callable<PayUrl>() {
            @Override
            public PayUrl call() throws Exception {
                log.error("asyc start"+platMerOrder);
                Method method = rechargeService.getClass().getMethod(platMerBaseCode.getChannelCode() + "Url", PlatMer.class,PlatMerBaseCode.class, PlatMerOrderParam.class, MerChannel.class);
                PayUrl payUrl = (PayUrl) method.invoke(rechargeService, platMer, platMerBaseCode, platMerOrder, merChannel);
                // log.warn(" orderApi created"+JSONObject.toJSONString(payUrl));
                redisTemplate.opsForValue().set(platMerOrder.getOrderId() + "payUrl", payUrl, 30, TimeUnit.MINUTES);
                // redisTemplate.opsForValue().set(
                //         platMerOrder.getOrderId()+"payUrl",
                //                 payUrl,
                //         30, TimeUnit.MINUTES);
            return payUrl;
        }
        
    };
        
    return new WebAsyncTask<PayUrl>(callable);
    }
    

    @PostMapping("/query")
    @ResponseBody
    public String query(String uid, String order_id, String sign_type, String salt, String key) throws Exception {
        String s = uid + order_id + salt + sign_type + key;
        log.info("s {}", s);
        String sign = this.encode(s);

        String url = "http://8.210.168.252:8080/api/query/";

        Map<String, Object> map = new HashMap<>();
        map.put("uid", uid); // 用户ID
        map.put("order_id", order_id); // 第三方订单号
        map.put("sign_type", "sha1");// 签名算法
        map.put("salt", System.currentTimeMillis());// 随即字符串
        map.put("sign", sign);
        log.info("map {}", map);

        String result = HttpUtil.post(url, map);
        JSONObject jsonObject = JSONObject.parseObject(result);
        log.info("result {}", jsonObject);
        if ("true".equals(jsonObject.getString("success"))) {
            PlatMerOrder order = platMerOrderService.getByOrderId(order_id);
            int b = platMerOrderService.success(order);
            if (b >0) {
                return "成功";
            }
        }

        return "失败";
    }

    private static final char[] HEX_DIGITS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd',
            'e', 'f' };

    /**
     * Takes the raw bytes from the digest and formats them correct.
     *
     * @param bytes
     *            the raw bytes from the digest.
     * @return the formatted bytes.
     */
    private static String getFormattedText(byte[] bytes) {
        int len = bytes.length;
        StringBuilder buf = new StringBuilder(len * 2);
        // 把密文转换成十六进制的字符串形式
        for (int j = 0; j < len; j++) {
            buf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);
            buf.append(HEX_DIGITS[bytes[j] & 0x0f]);
        }
        return buf.toString();
    }

    public static String encode(String str) {
        if (str == null) {
            return null;
        }
        try {
            MessageDigest messageDigest = MessageDigest.getInstance("SHA1");
            messageDigest.update(str.getBytes());
            return getFormattedText(messageDigest.digest());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    @PostMapping("/rechargeNotify")
    @ResponseBody
    public Object rechargeNotify(String reqParam, String iv) throws Exception {
        log.info("RechargeControllerApi param {}, {}", reqParam, iv);
        JSONObject param = this.parseReqParam(reqParam, iv, null);
//        Method method = platMerOrderNotify.getClass().getMethod(param.getString("channelCode") , JSONObject.class);
//        return new RespDataApi<String>((String)method.invoke(param));
        log.error(" recharge {}", param);
        String channelCode = param.getString("channelCode");

        param.remove("requestThirdIp");
        param.remove("channelCode");

        if (channelCode.equals("baolai")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baolai(param));
        }


        if (channelCode.equals("xiaoshi003")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiaoshi003Url(param));
        }

        if (channelCode.equals("pilin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.pilinUrl(param));
        }

        if (channelCode.equals("hongyi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hongyiUrl(param));
        }

        if (channelCode.equals("basecod")) {
            return new RespDataApi<String>(this.platMerOrderNotify.basecodUrl(param));
        }

        if (channelCode.equals("upay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.upayUrl(param));
        }

        if (channelCode.equals("caiying")) {
            return new RespDataApi<String>(this.platMerOrderNotify.caiyingUrl(param));
        }
        if (channelCode.equals("yuanwang")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yuanwangUrl(param));
        }

        if (channelCode.equals("xiaozhoutong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiaozhoutongUrl(param));
        }

        if (channelCode.equals("qmpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.qmpayUrl(param));
        }

        if (channelCode.equals("xgpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xgpay(param));
        }
        if (channelCode.equals("jinshunfu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinshunfu(param));
        }
        if (channelCode.equals("juziPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.juzi(param));
        }
        if (channelCode.equals("huaxin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huaxinUrl(param));
        }
        if (channelCode.equals("sanfang")) {
            return new RespDataApi<String>(this.platMerOrderNotify.sanfangUrl(param));
        }
        if (channelCode.equals("meiruibao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.meiruibaoUrl(param));
        }


        if (channelCode.equals("xinfubaoPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xinfubaoPay(param));
        }
        if (channelCode.equals("yhpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yhpayCall(param));
        }
        if (channelCode.equals("jinxin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinxinUrl(param));
        }
        if (channelCode.equals("wykkt")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wykktUrl(param));
        }
        if (channelCode.equals("fcpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fcpayUrl(param));
        }

        if (channelCode.equals("the")) {
            return new RespDataApi<String>(this.platMerOrderNotify.theUrl(param));
        }

        if (channelCode.equals("hnpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hnpay(param));
        }
        if (channelCode.equals("tbdfh5")) {
            return new RespDataApi<String>(this.platMerOrderNotify.tbdfh5(param));
        }
        if (channelCode.equals("jiexun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jiexunPay(param));
        }
        if (channelCode.equals("sjpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.sjpayUrl(param));
        }
        if (channelCode.equals("anda")) {
            return new RespDataApi<String>(this.platMerOrderNotify.andaUrl(param));
        }

        if (channelCode.equals("kaijia")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kaijiaUrl(param));
        }
        if (channelCode.equals("kkpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kkpay(param));
        }
        if (channelCode.equals("chuanyepay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chuanyepay(param));
        }
        if (channelCode.equals("shangshangkejiPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shangshangkejiPay(param));
        }
        if (channelCode.equals("dongyayifaPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dongyayifaPay(param));
        }
        if (channelCode.equals("XGPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.XGPay(param));
        }

        if (channelCode.equals("huote")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huote(param));
        }
        if (channelCode.equals("xiaocao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiaocaoPay(param));
        }

        if (channelCode.equals("jiebao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jiebaoPay(param));
        }

        if (channelCode.equals("sixsix")) {
            return new RespDataApi<String>(this.platMerOrderNotify.sixsixPay(param));
        }

        if (channelCode.equals("yi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yiPay(param));
        }
        if (channelCode.equals("caiyingNew")) {
            return new RespDataApi<String>(this.platMerOrderNotify.caiyingNew(param));
        }
        if (channelCode.equals("wenxinpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wenxinpay(param));
        }
        if (channelCode.equals("ukafu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ukafu(param));
        }
        if (channelCode.equals("huitiao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huitiao(param));
        }
        if (channelCode.equals("jxpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jxpay(param));
        }

        if (channelCode.equals("dongya")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dongyaPay(param));
        }
        if (channelCode.equals("hngmpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hngmpay(param));
        }
        if (channelCode.equals("ncgepay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ncgepay(param));
        }
        if (channelCode.equals("qpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.qpay(param));
        }
        if (channelCode.equals("sfkj")) {
            return new RespDataApi<String>(this.platMerOrderNotify.sfkj(param));
        }
        if (channelCode.equals("hskjpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hskjpay(param));
        }
        if (channelCode.equals("happyxyb")) {
            return new RespDataApi<String>(this.platMerOrderNotify.happyxyb(param));
        }
        if (channelCode.equals("gxyxUrl")) {
            return new RespDataApi<String>(this.platMerOrderNotify.gxyxUrl(param));
        }

        if (channelCode.equals("hengSheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hengShengPay(param));
        }

        if (channelCode.equals("zfb")) {
            return new RespDataApi<String>(this.platMerOrderNotify.zfb(param));
        }
        if (channelCode.equals("dongyakkpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dongyakkpay(param));
        }

        if (channelCode.equals("chengzi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chengzi(param));
        }
        if (channelCode.equals("hspay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hspayUrl(param));
        }
        if (channelCode.equals("yjapy")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yjapy(param));
        }
        if (channelCode.equals("yooopay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yooopay(param));
        }
        if (channelCode.equals("hfpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hfpay(param));
        }

        if (channelCode.equals("youjia")) {
            return new RespDataApi<String>(this.platMerOrderNotify.youjiaUrl(param));
        }

        if (channelCode.equalsIgnoreCase("baochen")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baochenUrl(param));
        }
        if (channelCode.equalsIgnoreCase("jinpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinpayUrl(param));
        }

        if (channelCode.equalsIgnoreCase("oreo")) {
            return new RespDataApi<String>(this.platMerOrderNotify.oreo(param));
        }

        if (channelCode.equalsIgnoreCase("dy")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dyUrl(param));
        }

        if (channelCode.equalsIgnoreCase("xunyin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xunyinUrl(param));
        }

        if (channelCode.equalsIgnoreCase("zhongbi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.zhongbiUrl(param));
        }

        if (channelCode.equalsIgnoreCase("tailian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.tailianUrl(param));
        }

        if (channelCode.equalsIgnoreCase("yinke")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinkeUrl(param));
        }

        if (channelCode.equalsIgnoreCase("anran")) {
            return new RespDataApi<String>(this.platMerOrderNotify.anranUrl(param));
        }

        if (channelCode.equalsIgnoreCase("baijia")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baijiaUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kuaizhifu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kuaizhifuUrl(param));
        }

        if (channelCode.equalsIgnoreCase("yonghuapay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yonghuapay(param));
        }

        if (channelCode.equalsIgnoreCase("luoyao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.luoyaoUrl(param));
        }

        if (channelCode.equalsIgnoreCase("shun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shunUrl(param));
        }

        if (channelCode.equalsIgnoreCase("jjpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jjzfUrl(param));
        }
        if (channelCode.equalsIgnoreCase("facai")) {
            return new RespDataApi<String>(this.platMerOrderNotify.facaiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("rrf")) {
            return new RespDataApi<String>(this.platMerOrderNotify.rrfUrl(param));
        }
        if (channelCode.equalsIgnoreCase("txpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shunUrl(param));
        }
        if (channelCode.equalsIgnoreCase("chacha")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chachaUrl(param));
        }
        if (channelCode.equalsIgnoreCase("js")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jsUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huanyu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huanyuUrl(param));
        }


        if (channelCode.equalsIgnoreCase("yisheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yishengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("shrpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shrpayUrl(param));
        }
        if (channelCode.equalsIgnoreCase("daheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dahengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("fajia")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fajiaUrl(param));
        }
        if (channelCode.equalsIgnoreCase("fajiaOrg")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fp(param));
        }
        if (channelCode.equalsIgnoreCase("haitun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.haitunUrl(param));
        }
        if (channelCode.equalsIgnoreCase("hongyun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hongyunUrl(param));
        }
        if (channelCode.equalsIgnoreCase("yunpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yunpayUrl(param));
        }
        if (channelCode.equalsIgnoreCase("haofu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.haofuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huanqiu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huanqiuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("shengrong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shengrongUrl(param));
        }
        if (channelCode.equalsIgnoreCase("lianda")) {
            return new RespDataApi<String>(this.platMerOrderNotify.liandaUrl(param));
        }
        if (channelCode.equalsIgnoreCase("wanmei")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wanmeiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("jiuxuan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jiuxuan(param));
        }
        if (channelCode.equalsIgnoreCase("shejiao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shejiao(param));
        }

        if (channelCode.equalsIgnoreCase("yfapy")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinFuTong(param));
        }
        if (channelCode.equalsIgnoreCase("mdpay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinFuTong(param));
        }
        if (channelCode.equalsIgnoreCase("juhe")) {
            return new RespDataApi<String>(this.platMerOrderNotify.juheUrl(param));
        }
        if (channelCode.equalsIgnoreCase("dxer")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dxerUrl(param));
        }
        if (channelCode.equalsIgnoreCase("sebo")) {
            return new RespDataApi<String>(this.platMerOrderNotify.seboUrl(param));
        }
        if (channelCode.equalsIgnoreCase("haitun2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.haitun2Url(param));
        }
        if (channelCode.equalsIgnoreCase("qianjinfu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.qianjinfuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("suibian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.suibianUrl(param));
        }
        if (channelCode.equalsIgnoreCase("wuyue")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wuyueUrl(param));
        }

        if (channelCode.equalsIgnoreCase("ac")) {
            return new RespDataApi<String>(this.platMerOrderNotify.acUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kaerNew")) {
            return new RespDataApi<String>(this.platMerOrderNotify.caiyingNew(param));
        }
        if (channelCode.equalsIgnoreCase("kaer")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kaerPay(param));
        }

        if (channelCode.equalsIgnoreCase("payOneOk")) {
            return new RespDataApi<String>(this.platMerOrderNotify.payOneOkUrl(param));
        }
        if (channelCode.equalsIgnoreCase("OTCX")) {
            return new RespDataApi<String>(this.platMerOrderNotify.OTCXUrl(param));
        }

        if (channelCode.equalsIgnoreCase("dingshun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dingshunUrl(param));
        }

        if (channelCode.equalsIgnoreCase("slj")) {
            return new RespDataApi<String>(this.platMerOrderNotify.sljUrl(param));
        }

        if (channelCode.equalsIgnoreCase("yuansheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yuanshengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("hook")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hookUrl(param));
        }
        if (channelCode.equalsIgnoreCase("julian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.julianUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kubei")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kubeiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("baichuan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baichuanUrl(param));
        }
        if (channelCode.equalsIgnoreCase("storm")) {
            return new RespDataApi<String>(this.platMerOrderNotify.stormUrl(param));
        }
        if (channelCode.equalsIgnoreCase("hengsheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hengshengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("jp")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jpUrl(param));
        }
        if (channelCode.equalsIgnoreCase("fc")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fcUrl(param));
        }

        if (channelCode.equalsIgnoreCase("shoudao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shoudaoUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kubeiNew")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kubeiNew(param));
        }

        if (channelCode.equalsIgnoreCase("fch")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fchUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kuaixun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kuaixunPay(param));
        }
        if (channelCode.equalsIgnoreCase("heshun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.heshunUrl(param));
        }

        if (channelCode.equalsIgnoreCase("dysf")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dysfUrl(param));
        }

        if (channelCode.equalsIgnoreCase("wanteng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wantengUrl(param));
        }

        if (channelCode.equalsIgnoreCase("si")) {
            return new RespDataApi<String>(this.platMerOrderNotify.siUrl(param));
        }

        if (channelCode.equalsIgnoreCase("mnashang")) {
            return new RespDataApi<String>(this.platMerOrderNotify.mnashangUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kn")) {
            return new RespDataApi<String>(this.platMerOrderNotify.knUrl(param));
        }

        if (channelCode.equalsIgnoreCase("ab")) {
            return new RespDataApi<String>(this.platMerOrderNotify.abUrl(param));
        }

        if (channelCode.equalsIgnoreCase("facaizf")) {
            return new RespDataApi<String>(this.platMerOrderNotify.facaizfPay(param));
        }
            if (channelCode.equalsIgnoreCase("tudou")) {
                return new RespDataApi<String>(this.platMerOrderNotify.tudouUrl(param));
            }

            if (channelCode.equalsIgnoreCase("qiancheng")) {
                return new RespDataApi<String>(this.platMerOrderNotify.qianchengUrl(param));
            }

            if (channelCode.equalsIgnoreCase("shayu")) {
                return new RespDataApi<String>(this.platMerOrderNotify.shayuUrl(param));
            }

            if (channelCode.equalsIgnoreCase("jinzhifu")) {
                return new RespDataApi<String>(this.platMerOrderNotify.yinFuTong(param));
            }

        if (channelCode.equalsIgnoreCase("zhf")) {
            return new RespDataApi<String>(this.platMerOrderNotify.zhfUrl(param));
        }


        if (channelCode.equalsIgnoreCase("mianqian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.mianqianUrl(param));
        }

        if (channelCode.equalsIgnoreCase("ronghuixin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ronghuixinUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kuaijie")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kuaijieUrl(param));
        }

        if (channelCode.equalsIgnoreCase("haoyun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.haoyunUrl(param));
        }


        if (channelCode.equalsIgnoreCase("moqing")) {
            return new RespDataApi<String>(this.platMerOrderNotify.moqingUrl(param));
        }
        if (channelCode.equalsIgnoreCase("shangtian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shangtian(param));
        }

        if (channelCode.equalsIgnoreCase("yunding")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yundingUrl(param));
        }

        if (channelCode.equalsIgnoreCase("shandian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shandianUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kx")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kuaixunPay(param));
        }

        if (channelCode.equalsIgnoreCase("kx2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kx2Url(param));
        }

        if (channelCode.equalsIgnoreCase("yuechuang")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yuechuangUrl(param));
        }

        if (channelCode.equalsIgnoreCase("guangxin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.guangxinUrl(param));
        }

        if (channelCode.equalsIgnoreCase("k")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kUrl(param));
        }

        if (channelCode.equalsIgnoreCase("wanxiang")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wanxiangUrl(param));
        }

        if (channelCode.equalsIgnoreCase("anteng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.antengUrl(param));
        }

        if (channelCode.equalsIgnoreCase("yezi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yeziUrl(param));
        }

        if (channelCode.equalsIgnoreCase("changfutong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.changfutongUrl(param));
        }

        if (channelCode.equalsIgnoreCase("longfa")) {
            return new RespDataApi<String>(this.platMerOrderNotify.longfaUrl(param));
        }

        if (channelCode.equalsIgnoreCase("zongcai")) {
            return new RespDataApi<String>(this.platMerOrderNotify.zongcaiUrl(param));
        }

        if (channelCode.equalsIgnoreCase("jinyuan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinyuanUrl(param));
        }

        if (channelCode.equalsIgnoreCase("shuiguo")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shuiguoUrl(param));
        }

        if (channelCode.equalsIgnoreCase("qianyifu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.qianyifuUrl(param));
        }

        if (channelCode.equalsIgnoreCase("yingfutong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yingfutongUrl(param));
        }

        if (channelCode.equalsIgnoreCase("bangsheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.bangshengUrl(param));
        }

        if (channelCode.equalsIgnoreCase("cft")) {
            return new RespDataApi<String>(this.platMerOrderNotify.cftUrl(param));
        }

        if (channelCode.equalsIgnoreCase("xiaodizhu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiaodizhuUrl(param));
        }

        if (channelCode.equalsIgnoreCase("xiaofeiyu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiaofeiyuUrl(param));
        }

        if (channelCode.equalsIgnoreCase("jueqi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jueqiUrl(param));
        }

        if (channelCode.equalsIgnoreCase("shuangsheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shuangshengUrl(param));
        }

        if (channelCode.equalsIgnoreCase("hc")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hcUrl(param));
        }

        if (channelCode.equalsIgnoreCase("ziyou")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ziyouUrl(param));
        }

        if (channelCode.equalsIgnoreCase("yunding2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yunding2Url(param));
        }

        if (channelCode.equalsIgnoreCase("lx")) {
            return new RespDataApi<String>(this.platMerOrderNotify.lxUrl(param));
        }

        if (channelCode.equalsIgnoreCase("kaer2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kaer2Url(param));
        }

        if (channelCode.equalsIgnoreCase("a")) {
            return new RespDataApi<String>(this.platMerOrderNotify.aUrl(param));
        }

        if (channelCode.equalsIgnoreCase("daitou")) {
            return new RespDataApi<String>(this.platMerOrderNotify.daitouUrl(param));
        }

        if (channelCode.equalsIgnoreCase("ys")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ysUrl(param));
        }

        if (channelCode.equalsIgnoreCase("huoxing")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huoxingUrl(param));
        }

        if (channelCode.equalsIgnoreCase("open")) {
            return new RespDataApi<String>(this.platMerOrderNotify.openUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kk")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kkUrl(param));
        }
        if (channelCode.equalsIgnoreCase("nanji")) {
            return new RespDataApi<String>(this.platMerOrderNotify.nanjiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("leishen")) {
            return new RespDataApi<String>(this.platMerOrderNotify.leishenUrl(param));
        }
        if (channelCode.equalsIgnoreCase("yinshangfu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinshangfuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("shunfu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shunfuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("wande")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wandeUrl(param));
        }
        if (channelCode.equalsIgnoreCase("beidouxing")) {
            return new RespDataApi<String>(this.platMerOrderNotify.beidouxingUrl(param));
        }
        if (channelCode.equalsIgnoreCase("xiaowu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiaowuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("ziyou1")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ziyou1Url(param));
        }
        if (channelCode.equalsIgnoreCase("gg")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ggUrl(param));
        }
        if (channelCode.equalsIgnoreCase("lesuma")) {
            return new RespDataApi<String>(this.platMerOrderNotify.lesumaUrl(param));
        }
        if (channelCode.equalsIgnoreCase("ruanyu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ruanyuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("baiyi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baiyiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("mingdongzf")) {
            return new RespDataApi<String>(this.platMerOrderNotify.mingdongzfUrl(param));
        }
        if (channelCode.equalsIgnoreCase("baobei")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baobeiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huiteng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huitengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("guigu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.guiguUrl(param));
        }
        if (channelCode.equalsIgnoreCase("if")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ifUrl(param));
        }
        if (channelCode.equalsIgnoreCase("quzhifu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.quzhifuPay(param));
        }
        if (channelCode.equalsIgnoreCase("yiliaoma")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yiliaoma(param));
        }
        if (channelCode.equalsIgnoreCase("huabao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huabaoUrl(param));
        }
        if (channelCode.equalsIgnoreCase("dingsheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dingshengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("chaofan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chaofanUrl(param));
        }
        if (channelCode.equalsIgnoreCase("dm")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dmUrl(param));
        }
        if (channelCode.equalsIgnoreCase("youyifu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.youyifuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("wangcai")) {
            return new RespDataApi<String>(this.platMerOrderNotify.wangcaiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("longteng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.longtengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("longfu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.longfuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("liuyi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.liuyiPay(param));
        }
        if (channelCode.equalsIgnoreCase("jinxi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinxiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huojian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huojianUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kaertaobao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kaertaobaoUrl(param));
        }
        if (channelCode.equalsIgnoreCase("shiliu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shiliuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("zhuanqian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.zhuanqianUrl(param));
        }
        if (channelCode.equalsIgnoreCase("congzhong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.congzhongUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huitong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huitongUrl(param));
        }
        if (channelCode.equalsIgnoreCase("dongyaziying")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dongyaziyingUrl(param));
        }

        if (channelCode.equalsIgnoreCase("chengzi2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chengzi2Url(param));
        }
        if (channelCode.equalsIgnoreCase("kc")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kcUrl(param));
        }
        if (channelCode.equalsIgnoreCase("yuxin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yuxinUrl(param));
        }
        if (channelCode.equalsIgnoreCase("changjiangdingshun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.changjiangdingshunUrl(param));
        }
        if (channelCode.equalsIgnoreCase("suba")) {
            return new RespDataApi<String>(this.platMerOrderNotify.subaUrl(param));
        }
        if (channelCode.equalsIgnoreCase("uu898")) {
            return new RespDataApi<String>(this.platMerOrderNotify.uu898(param));
        }
        if (channelCode.equalsIgnoreCase("jf")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jfUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kaer3")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kaer3Url(param));
        }
        if (channelCode.equalsIgnoreCase("kupao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kupaoUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huiteng2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huiteng2Url(param));
        }
        if (channelCode.equalsIgnoreCase("guangsu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.guangsuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("miaofu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.miaofuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("longjuanfeng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.longjuanfengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("epay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.epayUrl(param));
        }
        if (channelCode.equalsIgnoreCase("yuanwang2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yuanwang2Url(param));
        }
        if (channelCode.equalsIgnoreCase("qiantong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.qiantongUrl(param));
        }
        if (channelCode.equalsIgnoreCase("liantong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.liantongUrl(param));
        }
        if (channelCode.equalsIgnoreCase("xiangyun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xiangyunUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kuaifutong")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kuaifutongUrl(param));
        }
        if (channelCode.equalsIgnoreCase("haifeng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.haifengUrl(param));
        }
        if (channelCode.equalsIgnoreCase("juli2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.juli2Url(param));
        }
        if (channelCode.equalsIgnoreCase("b")) {
            return new RespDataApi<String>(this.platMerOrderNotify.bUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kk2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kk2Url(param));
        }
        if (channelCode.equalsIgnoreCase("liantongkami")) {
            return new RespDataApi<String>(this.platMerOrderNotify.liantongkamiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("tianyu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.tianyuPay(param));
        }
        if (channelCode.equalsIgnoreCase("b2cShangtian")) {
            return new RespDataApi<String>(this.platMerOrderNotify.b2cShangtian(param));
        }
        if (channelCode.equalsIgnoreCase("longjuanfeng2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.longjuanfeng2Url(param));
        }
        if (channelCode.equalsIgnoreCase("svip")) {
            return new RespDataApi<String>(this.platMerOrderNotify.svipUrl(param));
        }
        if (channelCode.equalsIgnoreCase("pikaqiu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.pikaqiuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("kaerhongbao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.kaerhongbaoUrl(param));
        }
        if (channelCode.equalsIgnoreCase("tudou2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.tudou2Url(param));
        }
        if (channelCode.equalsIgnoreCase("yifu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yifuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("jubaopen")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jubaopenUrl(param));
        }
        if (channelCode.equalsIgnoreCase("youzi")) {
            return new RespDataApi<String>(this.platMerOrderNotify.youziUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huitong2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huitong2Url(param));
        }
        if (channelCode.equalsIgnoreCase("suixing")) {
            return new RespDataApi<String>(this.platMerOrderNotify.suixingUrl(param));
        }
        if (channelCode.equalsIgnoreCase("xy")) {
            return new RespDataApi<String>(this.platMerOrderNotify.xyUrl(param));
        }
        if (channelCode.equalsIgnoreCase("ncgepay2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ncgepay2Url(param));
        }
        if (channelCode.equalsIgnoreCase("feifan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.feifanUrl(param));
        }
        if (channelCode.equalsIgnoreCase("chaojifu1")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chaojifuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("hx2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.hx2Url(param));
        }
        if (channelCode.equalsIgnoreCase("chuangxin")) {
            return new RespDataApi<String>(this.platMerOrderNotify.chuangxinUrl(param));
        }
        if (channelCode.equalsIgnoreCase("huibao")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huibaoUrl(param));
        }
        if (channelCode.equalsIgnoreCase("yifan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yifanUrl(param));
        }
        if (channelCode.equalsIgnoreCase("longzhifu")) {
            return new RespDataApi<String>(this.platMerOrderNotify.longzhifuUrl(param));
        }
        if (channelCode.equalsIgnoreCase("mudan")) {
            return new RespDataApi<String>(this.platMerOrderNotify.mudanUrl(param));
        }
        if (channelCode.equalsIgnoreCase("ncnewver")) {
            return new RespDataApi<String>(this.platMerOrderNotify.ncnewverUrl(param));
        }
        if (channelCode.equalsIgnoreCase("youyifu2")) {
            return new RespDataApi<String>(this.platMerOrderNotify.youyifu2Url(param));
        }
        if (channelCode.equalsIgnoreCase("yun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yunUrl(param));
        }
        if (channelCode.equalsIgnoreCase("chengfeng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.baiyiUrl(param));
        }
        if (channelCode.equalsIgnoreCase("fengyun")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fengyun(param));
        }     if (channelCode.equalsIgnoreCase("fuyouPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.fuyouPayUrl(param));
        }
        if (channelCode.equalsIgnoreCase("qingwa")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinxinUrl(param));
        }
        if (channelCode.equalsIgnoreCase("zhaocai")) {
            return new RespDataApi<String>(this.platMerOrderNotify.zhaocaiUrl(param));
        }       
        if (channelCode.equalsIgnoreCase("dingPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.dingUrl(param));
        }
        if (channelCode.equalsIgnoreCase("siruiPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinFuTong(param));
        } 
        if (channelCode.equalsIgnoreCase("huangjiaPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinFuTong(param));
        } 
//        dongfangPay
        if (channelCode.equalsIgnoreCase("dongfangPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.yinFuTong(param));
        } 
        if (channelCode.equalsIgnoreCase("dongPay")) {
            return new RespDataApi<String>(this.platMerOrderNotify.shunUrl(param));
            
            
        }   
        if (channelCode.equalsIgnoreCase("gucheng")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huitengUrl(param));
        } 
        
        if (channelCode.equalsIgnoreCase("yundingNew")) {
        	return new RespDataApi<String>(this.platMerOrderNotify.caiyingNew(param));
        }
        
        if (channelCode.equalsIgnoreCase("wanyun")) {
        	return new RespDataApi<String>(this.platMerOrderNotify.wanyun(param));
        }
        if (channelCode.equalsIgnoreCase("damiNew")) {
        	return new RespDataApi<String>(this.platMerOrderNotify.damiNew(param));
        }
        if (channelCode.equalsIgnoreCase("daxiang")) {
            return new RespDataApi<String>(this.platMerOrderNotify.daxiangUrl(param));
        } 
        //tianyuNew
        if (channelCode.equalsIgnoreCase("tianyuNew")) {
            return new RespDataApi<String>(this.platMerOrderNotify.jinxinUrl(param));
        } 
        //dayeUrl
        if (channelCode.equalsIgnoreCase("daye")) {
            return new RespDataApi<String>(this.platMerOrderNotify.huoxingUrl(param));
        } 
        return null;

    }

}
